import java.util.Random;

/**
 * Temp2
 *
 * @author nanxin.chen
 * @date 2015/11/17
 */
public class Temp2 {
    public static void main(String[] args) {
        int t = -1;
        long count = 0;

        while (true) {
            t = new Random().nextInt(1500);
//            System.out.println(t);
            count++;
            if (t == 0) {
                System.out.println("finally it is zero now ~~~~  t:" + t);
                System.out.println("count:"+count);
                break;
            }
        }
    }
}
